<?php
declare (strict_types = 1);

namespace app\adminapi\model\system\auth;

use adminmatrix\server\app\model\BaseModel;
use think\model\relation\HasOne;

/**
 * @mixin \think\Model
 */
class AdminSession extends BaseModel
{
    //

    #-------------------------------------------------------------------
    # 关联表
    #-------------------------------------------------------------------

    # 关联管理员
    public function admin():HasOne
    {
        return $this->hasOne(AdminUser::class , 'id' , 'admin_id');
    }
}
